import request from '@/utils/request'

// 查询监测站点列表
export function listStations(query) {
  return request({
    url: '/hma/stations/list',
    method: 'get',
    params: query
  })
}

// 查询监测站点详细
export function getStations(stationId) {
  return request({
    url: '/hma/stations/' + stationId,
    method: 'get'
  })
}

// 新增监测站点
export function addStations(data) {
  return request({
    url: '/hma/stations',
    method: 'post',
    data: data
  })
}

// 修改监测站点
export function updateStations(data) {
  return request({
    url: '/hma/stations',
    method: 'put',
    data: data
  })
}

// 删除监测站点
export function delStations(stationId) {
  return request({
    url: '/hma/stations/' + stationId,
    method: 'delete'
  })
}
